package com.thiswhyme.demo.msgpush.core;

/**
 * @description: 常量
 * @author: thiswhyme
 * @date: 2021/9/28
 */
public class WsConstant {

    /**
     * WebSocket session唯一标识名
     */
    public static final String WS_SESSION_IDENTIFIER = "WS-SESSION-IDENTIFIER";

    /**
     * WebSocket事件redis广播topic
     */
    public static final String WS_MSG_PUSH_CHANNEL = "channel-ws-msg-push";

    /**
     * WebSocket 协议名
     */
    public static final String PROTOCOL_WEBSOCKET = "WebSocket";

    /**
     * WebSocket连接token参数名
     */
    public static final String WS_TOKEN = "token";

    /**
     * 服务端实现方式-nio
     */
    public static final String IMPL_NIO = "NIO";

    /**
     * 服务端实现方式-ws
     */
    public static final String IMPL_WS = "WS";

    /**
     * 心跳消息内容-ping
     */
    public static final String HEARTBEAT_PING = "ping";

    /**
     * 心跳消息内容-pong
     */
    public static final String HEARTBEAT_PONG = "pong";
}
